#include "StdAfx.h"
#include "Primitive.h"

CPrimitive::CPrimitive(void)
: Color(0,0,0)
{

}

CPrimitive::~CPrimitive(void)
{

}
float CPrimitive::Intersect(CRay& ray, CPoint3D& intersection, CPoint3D& normal)
{
	return -1.f;
}
void CPrimitive::SetColor(float r, float g, float b)
{
	Color.Red = r;
	Color.Green = g;
	Color.Blue = b;
}
void CPrimitive::SetColor(CColor& color)
{
	Color = color;
}
void CPrimitive::SetMaterial(const CMaterial& mat)
{
	Material = mat;
}
const CColor& CPrimitive::GetColor()
{
	return Color;
}

CMaterial& CPrimitive::GetMaterial()
{
	return Material;
}